import React from 'react'
export default class News1 extends React.Component {
    
        state={
            msg:[
                'title1',
                'title2',
                'title3'
            ]
        }
     
   
    render (){
        return(
            <div>
                <h4>News1</h4>
                <ul>
                   {this.state.msg.map((item,index)=>
                       <li key={index}>{item}</li>
                   )}
                </ul>
            </div>
        )
    }
}